package com.teamAwesome.nfcAlarm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class ClockActivity extends Activity implements OnClickListener {

    private static final String TAG = "ClockActivity";
    private Button addAlarmBtn;
    private TextView currentDateLabel;
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.main);

	addAlarmBtn = (Button) findViewById(R.id.addAlarmBtn);
	addAlarmBtn.setOnClickListener(this);
	currentDateLabel = (TextView) findViewById(R.id.CurrentDateLabel);
    }

    /** Handle clicks */
    public void onClick(View v) {
	switch (v.getId()) {

	// Add an alarm
	case R.id.addAlarmBtn:
	    Intent editAlarm = new Intent(this, EditAlarmActivity.class);
	    startActivity(editAlarm);
	    break;

	default:
	    Log.e(TAG, "onClick id not found");
	}
    }

}